home *** CD-ROM | disk | FTP | other *** search
- CC.DOC
-
- The following information is for version 1.1 of "cc".
- "cc" was written by Dave Clemans (November 1985).
-
- "cc" is a program that acts as a frontend to the C compiler that comes
- with the Atari GEM toolkit. It has builtin knowledge of the various
- parameters to pass to the pieces of the compiler, the order to call
- the various pieces, and of the specific ways to link object files to
- get the desired output. It is modeled on the "cc" frontend that is
- associated with most Unix C compilers.
-
- The flags to this version of "cc" don't necessarily match other versions
- because GEM seems to allow only one case.
-
- "cc" knows how to use a RAM disk for temporary storage to speed up the
- compilation process.
-
- By default, "cc" assumes that one drive (or hard disk directory) contains
- the C compiler, assembler, linker and libraries. This requires either a
- double sided disk or a hard disk. Alternatively, "cc" can be called twice;
- once to compile the source files, and once to link them.
-
- This version assumes that the C compiler, assembler, linker, include files
- and libraries are all stored on drive A. This can be overridden by the
- "-b" flag. The location of the include files can be overridden by
- the "-i" flag.
-
- "cc" links object files as a TOS application by default. Files can
- be linked as GEM applications or as GEM desktop accessories by using
- the "-l" flag. Hooks to use GEMDOS calls are always linked in. Floating
- point support is not linked in unless one of the floating point flags
- "-e" or "-f" is given. (A floating point flag must be specified to use printf).
-
- "cc" prints as little as possible by default; only error messages and the
- names of each file if multiple files are being compiled in one invocation
- of "cc". If the "-v" flag is given, verbose messages are printed that
- tell what "cc" is doing at any point.
-
- "cc" was linked with a version of the "gemstart" module modified to give
- about 40K bytes for stack and heap space.
-
- The following is the message printed when you run the command "cc -help".
- cc: [flags] files ...
- files ...
- *.c C files
- *.s ASM files
- *.o OBJECT files
- others pass to linker
- flags ...
- -a compile to *.s file
- -b dir change bin directory
- -c compile to *.o file
- -dname=value define name with value for preprocessor
- -e floating point (IEEE)
- -f floating point (FFP)
- -h(elp) print this message
- -i dir change include directory
- -la link as GEM desk accessory
- -lg link as GEM program
- -lt link as TOS program
- -o file put output file here
- -p preprocessor to *.i file
- -q preprocessor only to stdout
- -r rename to standard suffix
- -s strip symbol table from output
- -t dir change temp directory
- -u(sage) print an usage message
- -v print verbose messages about what is happening
- -w ignore possible error messages
- -x cc command debugging output
- defaults ...
- BINDIR A: load compiler from here
- INCDIR A: standard include files here
- TMPDIR build temp,output files here
- a.prg output file name
- output file will ALWAYS have suffix .prg
- unless -r is specified
- output file MUST NOT be a directory path
-
- To use printf, specify -e or -f
- Typing ^C will interrupt compilation